package cn.nuc.pojo.sensorfire;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName("sensor")
public class Sensor implements Serializable {
    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;
    private String location;
    private String ip;
    private String port;
    private String sStatus;

    public Sensor(Integer id, String location, String ip, String port, String sStatus) {
        this.id = id;
        this.location = location;
        this.ip = ip;
        this.port = port;
        this.sStatus = sStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getsStatus() {
        return sStatus;
    }

    public void setsStatus(String sStatus) {
        this.sStatus = sStatus;
    }

    @Override
    public String toString() {
        return "Sensor{" +
                "id=" + id +
                ", location='" + location + '\'' +
                ", ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", sStatus='" + sStatus + '\'' +
                '}';
    }
}
